 var app={
	 
 }
 
 function getFormValues(form) {
    const values = {};
    const elements = form.elements;
    for (let i = 0; i < elements.length; i++) {
      const element = elements[i];
      const name = element.name;
      const type = element.type;
      if (name) {
        if (type === "text" || type === "textarea" || type === "select-one") {
          values[name] = element.value;
        } else if (type === "checkbox" || type === "radio") {
          if (element.checked) {
            if (!values[name]) {
              values[name] = [];
            }
            values[name].push(element.value);
          }
        }
      }
    }
    return values;
  }
  
